#include<bits/stdc++.h>
#define int long long

using namespace std;

signed main() 
{
	int y, m, d;
	scanf("%4ld-%2ld-%2ld", &y, &m, &d);
	cout << y + 10 << "-";
	cout << (m <= 9 ? "0" : "");
	cout << m << "-";
	cout << (d <= 9 ? "0" : "");
	cout << d;
	return 0;
}

